<template>
	<view class="">
		<u-navbar title="品牌故事" :autoBack="true" :placeholder="true"></u-navbar>


		<!-- <u-parse :html="content"></u-parse> -->


		<view class="">
			<view class="img-box">
				<image :src="content.image" class="ac-img" mode="widthFix"></image>
			</view>


			<view class="rich-text">
				<view class="title">
					{{content.title}}
				</view>
				<rich-text :nodes="content.cont"></rich-text>
			</view>

		</view>


	</view>
</template>

<script>
	export default {
		data() {
			return {
				content: {},
			}
		},

		onLoad() {
			this.activity();
		},

		methods: {
			async activity() {
				let res = await this.$api.activity({
					type: 1
				});
				// console.log(res + 
				// 11);

				this.content = res.data.data[0];

				console.log(res.data.data[0])
			},
		},
	}
</script>

<style>
	.img-box {
		padding: 0 20rpx;
	}

	.title {
		font-size: 32rpx;
		line-height: 50rpx;
	}

	.ac-img {
		width: calc(100vw - 40rpx);
		height: 120vw;
	}

	.rich-text {
		padding: 0 20rpx;
		font-size: 28rpx;
	}
</style>